package com.bella.springcloud.service;/**
 * @program: cloud2022
 * @description:
 * @packagename: com.bella.springcloud.service
 * @author: Bella白
 * @date: 2022-09-02 21:12
 **/

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: bella白
 * @Title: PaymentHystrixService
 * @ProjectName: cloud2022
 * @Description:
 * @date: 2022/9/2 21:12
 */
@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT" ,fallback =PaymentFallbackService.class )
public interface PaymentHystrixService {
    @GetMapping(value = "/payment/hystrix/ok/{id}")
    public String paymentInfo_OK(@PathVariable("id")Integer id);

    @GetMapping(value = "/payment/hystrix/timeout/{id}")
    public String paymentInfo_TimeOut(@PathVariable("id")Integer id);

}
